﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using MongoDB.Bson;
using MongoDB.Bson.Serialization;
using MongoDB.Bson.Serialization.Attributes;


namespace UIModel.Mongo
{
    /// <summary>
    /// 会员基础资料
    /// </summary>
    public partial class BaseGuest
    {
        
        /// <summary>
        /// 主键ID(mongo专用)
        /// </summary>
        public ObjectId _id { get; set; }

        /// <summary>
        /// 主键：企业编号
        /// </summary>
        [Description("企业编号")]
        public string CpnID { get; set; }

        /// <summary>
        /// 主键：会员ID
        /// </summary>
        [Description("会员ID")]
        public Int32 GstID { get; set; }

        /// <summary>
        /// 企业会员号(企业内部会员号，企业内唯一)
        /// </summary>
        [Description("企业会员号")]
        public string VipID { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [Description("姓名")]
        public string Name { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        [Description("昵称")]
        public string NickName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [Description("性别")]
        public int? Sex { get; set; }
        /// <summary>
        /// 移动电话
        /// </summary>
        [Description("移动电话")]
        public string Tel { get; set; }

        /// <summary>
        /// 证件类型
        /// </summary>
        [Description("证件类型")]
        public string IDntTp { get; set; }

        /// <summary>
        /// 证件号码
        /// </summary>
        [Description("证件号码")]
        public string IDntNmb { get; set; }

        /// <summary>
        /// 线上会员类型(0-非线上会员、1-微信)
        /// </summary>
        [Description("线上会员类型(0-非线上会员、1-微信)")]
        public int? Lne { get; set; }

        /// <summary>
        /// 线上注册时间
        /// </summary>
        [Description("线上注册时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? BndDt { get; set; }

        /// <summary>
        /// 解绑时间
        /// </summary>
        [Description("解绑时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? UnBndDt { get; set; }

        /// <summary>
        /// OpenID
        /// </summary>
        [Description("OpenID")]
        public string OpnID { get; set; }

        /// <summary>
        /// 会员类型
        /// </summary>
        [Description("会员类型")]
        public string VipTpID { get; set; }

        /// <summary>
        /// 状态(-1注销、0-正常、1-冻结冻结后禁止账户消费)
        /// </summary>
        [Description("状态")]
        public Int32? Stt { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        [Description("生日")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? Brth { get; set; }

        /// <summary>
        /// 会员年龄
        /// </summary>
        [Description("会员年龄")]
        public int? VipAge { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        [Description("注册时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? RegDt { get; set; }

        /// <summary>
        /// 主键：卡账号
        /// </summary>
        [Description("卡账号")]
        public string CrdID { get; set; }


        /// <summary>
        /// 卡面号(企业唯一)
        /// </summary>
        [Description("卡面号(企业唯一)")]
        public string CrdNo { get; set; }

        /// <summary>
        /// 注册会龄
        /// </summary>
        [Description("注册会龄")]
        public int? RegstMonth { get; set; }
        /// <summary>
        /// 微信会龄
        /// </summary>
        [Description("微信会龄")]
        public int? RgWxMonth { get; set; }
    }
    /// <summary>
    /// 根据标签id来查询会员基础资料模型
    /// </summary>
    public partial class GuestLbInfo
    {

        /// <summary>
        /// 主键：企业编号
        /// </summary>
        [Description("企业编号")]
        public string CpnID { get; set; }

        /// <summary>
        /// 主键：会员ID
        /// </summary>
        [Description("会员ID")]
        public Int32 GstID { get; set; }

        /// <summary>
        /// 企业会员号(企业内部会员号，企业内唯一)
        /// </summary>
        [Description("企业会员号")]
        public string VipID { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [Description("姓名")]
        public string Name { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        [Description("昵称")]
        public string NickName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [Description("性别")]
        public int? Sex { get; set; }
        /// <summary>
        /// 移动电话
        /// </summary>
        [Description("移动电话")]
        public string Tel { get; set; }

        /// <summary>
        /// 证件类型
        /// </summary>
        [Description("证件类型")]
        public string IDntTp { get; set; }

        /// <summary>
        /// 证件号码
        /// </summary>
        [Description("证件号码")]
        public string IDntNmb { get; set; }

        /// <summary>
        /// 线上会员类型(0-非线上会员、1-微信)
        /// </summary>
        [Description("线上会员类型(0-非线上会员、1-微信)")]
        public int? Lne { get; set; }

        /// <summary>
        /// 线上注册时间
        /// </summary>
        [Description("线上注册时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? BndDt { get; set; }

        /// <summary>
        /// 解绑时间
        /// </summary>
        [Description("解绑时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? UnBndDt { get; set; }

        /// <summary>
        /// OpenID
        /// </summary>
        [Description("OpenID")]
        public string OpnID { get; set; }

        /// <summary>
        /// 会员类型
        /// </summary>
        [Description("会员类型")]
        public string VipTpID { get; set; }

        /// <summary>
        /// 状态(-1注销、0-正常、1-冻结冻结后禁止账户消费)
        /// </summary>
        [Description("状态")]
        public Int32? Stt { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        [Description("生日")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? Brth { get; set; }

        /// <summary>
        /// 会员年龄
        /// </summary>
        [Description("会员年龄")]
        public int? VipAge { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        [Description("注册时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? RegDt { get; set; }

        /// <summary>
        /// 主键：卡账号
        /// </summary>
        [Description("卡账号")]
        public string CrdID { get; set; }


        /// <summary>
        /// 卡面号(企业唯一)
        /// </summary>
        [Description("卡面号(企业唯一)")]
        public string CrdNo { get; set; }

        /// <summary>
        /// 注册会龄
        /// </summary>
        [Description("注册会龄")]
        public int? RegstMonth { get; set; }
        /// <summary>
        /// 微信会龄
        /// </summary>
        [Description("微信会龄")]
        public int? RgWxMonth { get; set; }

        /// <summary>
        /// 标签名称
        /// </summary>
        [Description("标签名称")]
        public string LbName { get; set; }
        /// <summary>
        /// 毛利
        /// </summary>
        [Description("毛利")]
        public int Mpro { get; set; }
        /// <summary>
        /// 毛利千分位
        /// </summary>
        [Description("毛利")]
        public string MproStr { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Description("金额")]
        public int ConsAmt { get; set; }
        /// <summary>
        /// 金额千分位
        /// </summary>
        [Description("金额")]
        public string ConsAmtStr { get; set; }
        /// <summary>
        /// 标签描述
        /// </summary>
        [Description("标签描述")]
        public string LbBrf { get; set; }
    }

   
}
